package es.agroservicio.Agroservicio.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "Facturas")
public class Bill {
	
	@Id
	@Column(name = "IdFac")
	@NotEmpty
	private int idBill;
	
	@Column(name = "Situacion")
	@Length(max = 40)	
	private String status;
	
	@Column(name = "Notas")
	@Length(max = 255)	
	private String notes;
	
	@Column(name = "PrecioNoIva")
	@NotEmpty	
	private float priceNoTaxes;
	
	@Column(name = "Ganancia")
	private float benefits;
	
	@Column(name = "IdCli")
	@NotEmpty	
	private String idClient;
	
	@Column(name = "Descuento")
	@Length(max = 100)	
	private float discount;
	
	@Column(name = "Iva")
	@NotEmpty	
	private float taxes;
	
	@Column(name = "Nombre")
	@NotEmpty
	@Length(max = 100)	
	private String name;
	
	@Column(name = "PrecioIva")
	@NotEmpty	
	private float priceTaxes;
	
	@Column(name = "Fecha")
	@NotEmpty
	private Date date;
	
	@Column(name = "Anio")
	private int year;

	public int getIdBill() {
		return idBill;
	}

	public void setIdBill(int idBill) {
		this.idBill = idBill;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public float getPriceNoTaxes() {
		return priceNoTaxes;
	}

	public void setPriceNoTaxes(float priceNoTaxes) {
		this.priceNoTaxes = priceNoTaxes;
	}

	public float getBenefits() {
		return benefits;
	}

	public void setBenefits(float benefits) {
		this.benefits = benefits;
	}

	public String getIdClient() {
		return idClient;
	}

	public void setIdClient(String idClient) {
		this.idClient = idClient;
	}

	public float getDiscount() {
		return discount;
	}

	public void setDiscount(float discount) {
		this.discount = discount;
	}

	public float getTaxes() {
		return taxes;
	}

	public void setTaxes(float taxes) {
		this.taxes = taxes;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getPriceTaxes() {
		return priceTaxes;
	}

	public void setPriceTaxes(float priceTaxes) {
		this.priceTaxes = priceTaxes;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}
	
	
}
